package com.esun.payment_api.mapper;

import com.esun.common.bean.PageRequest;
import com.esun.payment_api.bean.DkContractBean;
import com.esun.payment_api.domain.SysDictContract;
import com.esun.payment_api.domain.SysDictContractExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;

public interface SysDictContractMapper {
    long countByExample(SysDictContractExample example);

    int deleteByExample(SysDictContractExample example);

    int deleteByPrimaryKey(Short id);

    int insert(SysDictContract record);

    int insertSelective(SysDictContract record);

    //条件查询
    List<SysDictContract> selectByExample(SysDictContractExample example);

    SysDictContract selectByPrimaryKey(Short id);

    int updateByExampleSelective(@Param("record") SysDictContract record, @Param("example") SysDictContractExample example);

    int updateByExample(@Param("record") SysDictContract record, @Param("example") SysDictContractExample example);

    int updateByPrimaryKeySelective(SysDictContract record);

    int updateByPrimaryKey(SysDictContract record);

    //根据id软删
    int deleteById(Integer id);

    List<DkContractBean> claimSelectContract(Short companyId, Integer claimId, Integer customerId, String searchStr);

    //根据invId获取选择合同号列表
    List<SysDictContract> getContractList(PageRequest pageRequest);
}